/**
 * 
 */
package com.googlecode.dynargs.model.constraints.validation;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public class Min extends ValidationConstraint {

	protected long value;
	
	public Min(String message, long value) {
		super(javax.validation.constraints.Min.class, ValidationConstraintType.MIN, message);
		this.value = value;
	}

	/**
	 * @return the value
	 */
	public long getValue() {
		return value;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Min [value=");
		builder.append(value);
		builder.append(", message=");
		builder.append(message);
		builder.append("]");
		return builder.toString();
	}
}
